extends Node

var spawner_mgr :SpawnerMgr = SpawnerMgr.new()
var instance
func _ready() -> void:
	test_instantiation()

func _process(delta: float) -> void:
	if Input.is_action_just_pressed("mouse_click_left"):
		test_recycle()

func test_instantiation():
	instance = spawner_mgr.request_instance("res://Entity/Chess.tscn")
	add_child(instance)

func test_recycle():
	spawner_mgr.recycle_instance(instance)
